<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>gen_cooc_matrix [HALCON算子参考手册]</title>
<style type="text/css">
      body {
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.body_main {
    margin-left: 35px;
    margin-right: 35px;
}

@media screen and (min-width:992px) {

    .body_main {
        margin-left: 10%;
        margin-right: 10%;
    }

    table.toctable {
        width: 80%
    }
}

@media screen and (min-width:1400px) {

    .body_main {
        margin-left: 15%;
        margin-right: 15%;
    }

    table.toctable {
        width: 70%
    }
}

body>div ul ul {
    margin-left: inherit;
}

a:link {
    color: #0044cc;
}

a:link,
a:visited {
    text-decoration: none;
}

a:link:hover,
a:visited:hover {
    text-decoration: underline;
}

th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-rendering: optimizeLegibility;
    color: #666666;
}

code {
    font-family: monospace,monospace;
}

h1 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

h2 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

hr {
    border: 0;
    border-top: solid 1px #f28d26;
}

.pre {
    display: block;
    padding-bottom: 1ex;
    font-family: monospace;
    white-space: pre;
}

pre {
    font-family: monospace, monospace;
    padding: 1ex;
    white-space: pre-wrap;
}

.toc {
    font-size: 80%;
    border-top: 1px dashed #f28d26;
    border-bottom: 1px dashed #f28d26;
    padding-top: 5px;
    padding-bottom: 5px;
}

.inv {
    margin: 0;
    border: 0;
    padding: 0;
}

.banner {
    color: #666666;
    padding-left: 1em;
}

.logo {
    background-color: white;
}

.keyboard {
    font-size: 80%;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #f28d26;
    background-color: #f3f3f3;
}

.warning {
    margin-top: 2ex;
    margin-bottom: 1ex;
    padding: 10px;
    text-align: center;
    border: 1px solid;
    color: #bb0000;
    background-color: #fff7f7
}

.imprint {
    margin-top: 1ex;
    font-size: 80%;
    color: #666666;
}

.imprinthead {
    font-weight: bolder;
    color: #666666;
}

.indexlink {
    text-align: right;
    padding-bottom: 5px;
}

.postscript {
    margin-top: 2ex;
    font-size: 80%;
    color: #666666
}

.evenrow {
    background-color: #e7e7ef;
    vertical-align: top;
}

.oddrow {
    background-color: #f7f7ff;
    vertical-align: top;
}

.headrow {
    background-color: #97979f;
    color: #ffffff;
    vertical-align: top;
}

.logorow {
    vertical-align: top;
}

.error {
    color: red;
}

.var {
    font-style: italic
}

.halconoperator {
    font-family: monospace, monospace;
}

span.operator {
    font-family: monospace, monospace;
}

span.procedure {
    font-family: monospace, monospace;
}

span.operation {
    font-family: monospace, monospace;
}

span.feature {
    font-family: Arial, Helvetica, Homerton, sans-serif;
}

ul {
    padding-left: 1.2em;
}

li.dot {
    list-style-type: square;
    color: #f28d26;
}

.breadcrumb {
    font-size: 80%;
    color: white;
    background-color: #062d64;
    margin-bottom: 20px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 15px;
}

.webbar {
    font-size: 80%;
    background-color: #dddddd;
    margin-top: 0px;
    margin-left: -35px;
    margin-right: -35px;
    margin-bottom: 0px;
    padding-top: 5px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 5px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px dashed #f28d26;
    font-size: 80%;
    color: #666666;
    padding-bottom: 8px;
}

.footer .socialmedia a {
    padding-left: 7px;
}

.socialmedia {
    padding-top: 10px;
}

.copyright {
    margin-top: 19px;
}

.breadcrumb a {
    color: #ffffff;
    border-bottom: 1px solid white;
}

.breadcrumb a:link:hover,
.breadcrumb a:visited:hover {
    text-decoration: none;
    border-bottom: none;
}

.heading {
    margin-top: 1ex;
    font-size: 110%;
    font-weight: bold;
    color: #666666;
}

.text {
    color: black;
}

.example {
    font-size: 80%;
    background-color: #f3f3f3;
    border: 1px dashed #666666;
    padding: 10px;
}

.displaymath {
    display: block;
    text-align: center;
    margin-top: 1ex;
    margin-bottom: 1ex;
}

.title {
    float: left;
    padding-top: 3px;
    padding-bottom: 3px;
}

.signnote {
    font-family: Arial, Helvetica, Homerton, sans-serif;
    font-size: 80%;
    color: #666666;
    font-weight: lighter;
    font-style: italic
}

.par {
    margin-bottom: 1.5em;
}

.parhead {
    text-align: right;
}

.parname {
    float: left;
}

.pardesc {
    font-size: 85%;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: 2em;
}

.parcat {
    color: #666;
    font-weight: bold;
}

*[data-if=cpp],
*[data-if=c],
*[data-if=dotnet],
*[data-if=com],
*[data-if=python] {
    display: none;
}

.tabbar {
    text-align: right;
    border-bottom: 1px solid #f28d26;
    margin-bottom: 0.5em;
}

ul.tabs {
    padding-top: 3px;
    padding-bottom: 3px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 80%
}

ul.tabs li {
    padding-top: 3px;
    padding-bottom: 3px;
    display: inline;
    overflow: hidden;
    list-style-type: none;
    margin: 0;
    margin-left: 8px;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    border-right: 1px solid #666;
}

ul.tabs li.active {
    border-left: 1px solid #f28d26;
    border-right: 1px solid #f28d26;
    border-top: 1px solid #f28d26;
    border-bottom: 1px solid #fff;
}

ul.tabs li.inactive {
    background-color: #eee;
}

ul.tabs li a {
    padding-left: 5px;
    padding-right: 5px;
    color: #666;
}

ul.tabs li a:link:hover {
    text-decoration: none;
}

ul.tabs li.inactive a {
    color: #666;
}

ul.tabs li.active a {
    color: black;
}

dl.generic dd {
    margin-bottom: 1em;
}

.pari {
    color: olive;
}

.paro {
    color: maroon;
}

.comment {
    font-size: 80%;
    color: green;
    white-space: nowrap;
}

table.grid {
    border-collapse: collapse;
}

table.grid td {
    padding: 5px;
    border: 1px solid;
}

table.layout {
    border: 0px;
}

table.layout td {
    padding: 5px;
}

table.table {
    border-collapse: collapse;
}

table.table td {
    padding: 5px;
    border-left: 0px;
    border-right: 0px;
}

table.table tr:last-child {
    border-bottom: 1px solid;
}

table.table th {
    padding: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: 0px;
    border-right: 0px;
}

.details_summary {
    cursor: pointer;
}

table.toctable {
    width: 100%;
}

table.toctable col:first-child {
    width: 20%;
}

table.toctable col:nth-last-child(2) {
    width: 8%;
}

table.altcolored tr:nth-child(even) {
    background-color: #f3f3f3;
}

    </style>
<!--OP_REF_STYLE_END-->
<script>
    <!--
var active_lang='hdevelop';function switchVisibility(obj,active_lang,new_lang)
{var display_style='inline';
for(var i=0;i<obj.length;i++)
{if(obj.item(i).getAttribute('data-if')==new_lang)
{obj.item(i).style.display=display_style;}
if(obj.item(i).getAttribute('data-if')==active_lang)
{obj.item(i).style.display='none';}}
return;}
function toggleLanguage(new_lang,initial)
{if(active_lang!=new_lang)
{var lis=document.getElementsByTagName('li');for(var i=0;i<lis.length;i++)
{if(lis.item(i).id=='syn-'+new_lang)
{lis.item(i).className='active';}
else
{lis.item(i).className='inactive';}}
var divs=document.getElementsByTagName('div');var spans=document.getElementsByTagName('span');switchVisibility(divs,active_lang,new_lang);switchVisibility(spans,active_lang,new_lang);if(!initial)
{setCookie("halcon_reference_language",new_lang,null,null);}
active_lang=new_lang;}
return;}
function setCookie(name,value,domain,exp_offset,path,secure)
{localStorage.setItem(name,value);}
function getCookie(name)
{return localStorage.getItem(name);}
function initialize()
{var qs=location.href.split('?')[1];var qs_lang_raw=location.href.split('interface=')[1];var qs_lang;if(qs_lang_raw)
{qs_lang=qs_lang_raw.split('#')[0];}
var cookie_lang=getCookie("halcon_reference_language");var new_lang;if((qs_lang=="hdevelop")||(qs_lang=="dotnet")||(qs_lang=="python")||(qs_lang=="cpp")||(qs_lang=="c"))
{new_lang=qs_lang;setCookie("halcon_reference_language",new_lang,null,null);}
else if((cookie_lang=="hdevelop")||(cookie_lang=="dotnet")||(cookie_lang=="python")||(cookie_lang=="cpp")||(cookie_lang=="c"))
{new_lang=cookie_lang;}
else
{new_lang="hdevelop";}
toggleLanguage(new_lang,1);return;}
-->

  </script>
</head>
<body onload="initialize();">
<div class="breadcrumb">
<br class="inv"><a href="index.html">目录</a> / <a href="toc_image.html">Image</a> / <a href="toc_image_features.html">特征</a><br class="inv">
</div>
<div class="body_main">
<div class="tabbar"><ul class="tabs">
<li id="syn-hdevelop" class="active"><a href="javascript:void(0);" onclick="toggleLanguage('hdevelop')" onfocus="blur()">HDevelop</a></li>
<li id="syn-dotnet" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('dotnet')" onfocus="blur()">.NET</a></li>
<li id="syn-python" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('python')" onfocus="blur()">Python</a></li>
<li id="syn-cpp" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('cpp')" onfocus="blur()">C++</a></li>
<li id="syn-c" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('c')" onfocus="blur()">C</a></li>
</ul></div>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<!--OP_REF_HEADER_END-->
<h1 id="sec_name">
<span data-if="hdevelop" style="display:inline;">gen_cooc_matrix</span><span data-if="c" style="display:none;">gen_cooc_matrix</span><span data-if="cpp" style="display:none;">GenCoocMatrix</span><span data-if="dotnet" style="display:none;">GenCoocMatrix</span><span data-if="python" style="display:none;">gen_cooc_matrix</span> (算子名称)</h1>
<h2>名称</h2>
<p><code><span data-if="hdevelop" style="display:inline;">gen_cooc_matrix</span><span data-if="c" style="display:none;">gen_cooc_matrix</span><span data-if="cpp" style="display:none;">GenCoocMatrix</span><span data-if="dotnet" style="display:none;">GenCoocMatrix</span><span data-if="python" style="display:none;">gen_cooc_matrix</span></code> — Calculate the co-occurrence matrix of a region in an image.</p>
<h2 id="sec_synopsis">参数签名</h2>
<div data-if="hdevelop" style="display:inline;">
<p>
<code><b>gen_cooc_matrix</b>(<a href="#Regions"><i>区域</i></a>, <a href="#Image"><i>Image</i></a> : <a href="#Matrix"><i>Matrix</i></a> : <a href="#LdGray"><i>LdGray</i></a>, <a href="#Direction"><i>Direction</i></a> : )</code></p>
</div>
<div data-if="c" style="display:none;">
<p>
<code>Herror <b>gen_cooc_matrix</b>(const Hobject <a href="#Regions"><i>区域</i></a>, const Hobject <a href="#Image"><i>Image</i></a>, Hobject* <a href="#Matrix"><i>Matrix</i></a>, const Hlong <a href="#LdGray"><i>LdGray</i></a>, const Hlong <a href="#Direction"><i>Direction</i></a>)</code></p>
<p>
<code>Herror <b>T_gen_cooc_matrix</b>(const Hobject <a href="#Regions"><i>区域</i></a>, const Hobject <a href="#Image"><i>Image</i></a>, Hobject* <a href="#Matrix"><i>Matrix</i></a>, const Htuple <a href="#LdGray"><i>LdGray</i></a>, const Htuple <a href="#Direction"><i>Direction</i></a>)</code></p>
</div>
<div data-if="cpp" style="display:none;">
<p>
<code>void <b>GenCoocMatrix</b>(const HObject&amp; <a href="#Regions"><i>区域</i></a>, const HObject&amp; <a href="#Image"><i>Image</i></a>, HObject* <a href="#Matrix"><i>Matrix</i></a>, const HTuple&amp; <a href="#LdGray"><i>LdGray</i></a>, const HTuple&amp; <a href="#Direction"><i>Direction</i></a>)</code></p>
<p>
<code><a href="HImage.html">HImage</a> <a href="HImage.html">HImage</a>::<b>GenCoocMatrix</b>(const HRegion&amp; <a href="#Regions"><i>区域</i></a>, Hlong <a href="#LdGray"><i>LdGray</i></a>, Hlong <a href="#Direction"><i>Direction</i></a>) const</code></p>
<p>
<code><a href="HImage.html">HImage</a> <a href="HRegion.html">HRegion</a>::<b>GenCoocMatrix</b>(const HImage&amp; <a href="#Image"><i>Image</i></a>, Hlong <a href="#LdGray"><i>LdGray</i></a>, Hlong <a href="#Direction"><i>Direction</i></a>) const</code></p>
</div>
<div data-if="com" style="display:none;"></div>
<div data-if="dotnet" style="display:none;">
<p>
<code>static void <a href="HOperatorSet.html">HOperatorSet</a>.<b>GenCoocMatrix</b>(<a href="HObject.html">HObject</a> <a href="#Regions"><i>区域</i></a>, <a href="HObject.html">HObject</a> <a href="#Image"><i>image</i></a>, out <a href="HObject.html">HObject</a> <a href="#Matrix"><i>matrix</i></a>, <a href="HTuple.html">HTuple</a> <a href="#LdGray"><i>ldGray</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Direction"><i>direction</i></a>)</code></p>
<p>
<code><a href="HImage.html">HImage</a> <a href="HImage.html">HImage</a>.<b>GenCoocMatrix</b>(<a href="HRegion.html">HRegion</a> <a href="#Regions"><i>区域</i></a>, int <a href="#LdGray"><i>ldGray</i></a>, int <a href="#Direction"><i>direction</i></a>)</code></p>
<p>
<code><a href="HImage.html">HImage</a> <a href="HRegion.html">HRegion</a>.<b>GenCoocMatrix</b>(<a href="HImage.html">HImage</a> <a href="#Image"><i>image</i></a>, int <a href="#LdGray"><i>ldGray</i></a>, int <a href="#Direction"><i>direction</i></a>)</code></p>
</div>
<div data-if="python" style="display:none;">
<p>
<code>def <b>gen_cooc_matrix</b>(<a href="#Regions"><i>区域</i></a>: HObject, <a href="#Image"><i>image</i></a>: HObject, <a href="#LdGray"><i>ld_gray</i></a>: int, <a href="#Direction"><i>direction</i></a>: int) -&gt; HObject</code></p>
</div>
<h2 id="sec_description">描述</h2>
<p>该算子 <code><span data-if="hdevelop" style="display:inline">gen_cooc_matrix</span><span data-if="c" style="display:none">gen_cooc_matrix</span><span data-if="cpp" style="display:none">GenCoocMatrix</span><span data-if="com" style="display:none">GenCoocMatrix</span><span data-if="dotnet" style="display:none">GenCoocMatrix</span><span data-if="python" style="display:none">gen_cooc_matrix</span></code> determines from the input
regions how often the gray values i and j are located next to
each other in a certain direction (<i>0</i>, <i>45</i>,
<i>90</i>, <i>135</i> degrees), stores this number in the
co-occurrence matrix at the locations (i,j) and (j,i) (the
matrix is symmetrical), and finally scales the matrix with the
number of entries.  <a href="#LdGray"><i><code><span data-if="hdevelop" style="display:inline">LdGray</span><span data-if="c" style="display:none">LdGray</span><span data-if="cpp" style="display:none">LdGray</span><span data-if="com" style="display:none">LdGray</span><span data-if="dotnet" style="display:none">ldGray</span><span data-if="python" style="display:none">ld_gray</span></code></i></a> indicates the number of gray
values to be distinguished (namely <span title="1" style="vertical-align:-0.124322em" class="math"><!-- Created by MetaPost 1.902 on 2023.05.15:2033 --><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="4.26051em" height="1.12364em" viewBox="0 0 68.168106 17.978302">
<!-- Original BoundingBox: -34.084061 -8.989151 34.084045 8.989151 -->
  <defs>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_71">
      <path style="fill-rule: evenodd;" d="M520.000000 -209.000000L534.000000 -209.000000C553.000000 -209.000000,562.000000 -216.000000,562.000000 -230.000000C562.000000 -243.000000,553.000000 -250.000000,534.000000 -250.000000L340.000000 -250.000000C322.000000 -250.000000,313.000000 -243.000000,313.000000 -230.000000C313.000000 -216.000000,322.000000 -209.000000,340.000000 -209.000000L479.000000 -209.000000L479.000000 -59.000000C423.000000 -33.000000,388.000000 -25.000000,336.000000 -25.000000C192.000000 -25.000000,104.000000 -108.000000,104.000000 -244.000000L104.000000 -317.000000C104.000000 -376.000000,132.000000 -440.000000,176.000000 -481.000000C214.000000 -518.000000,259.000000 -535.000000,315.000000 -535.000000C404.000000 -535.000000,476.000000 -494.000000,480.000000 -443.000000C481.000000 -426.000000,487.000000 -418.000000,500.000000 -418.000000C513.000000 -418.000000,520.000000 -427.000000,520.000000 -445.000000L520.000000 -536.000000C520.000000 -555.000000,514.000000 -563.000000,500.000000 -563.000000C486.000000 -563.000000,479.000000 -554.000000,479.000000 -536.000000L479.000000 -522.000000C434.000000 -558.000000,379.000000 -576.000000,313.000000 -576.000000C247.000000 -576.000000,189.000000 -553.000000,144.000000 -511.000000C94.000000 -463.000000,63.000000 -389.000000,63.000000 -318.000000L63.000000 -244.000000C63.000000 -86.000000,169.000000 16.000000,333.000000 16.000000C395.000000 16.000000,461.000000 -2.000000,520.000000 -36.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_76">
      <path style="fill-rule: evenodd;" d="M227.000000 -522.000000L323.000000 -522.000000C341.000000 -522.000000,350.000000 -529.000000,350.000000 -543.000000C350.000000 -556.000000,341.000000 -563.000000,323.000000 -563.000000L90.000000 -563.000000C72.000000 -563.000000,63.000000 -556.000000,63.000000 -543.000000C63.000000 -529.000000,72.000000 -522.000000,90.000000 -522.000000L186.000000 -522.000000L186.000000 -41.000000L90.000000 -41.000000C72.000000 -41.000000,63.000000 -34.000000,63.000000 -21.000000C63.000000 -7.000000,72.000000 -0.000000,90.000000 -0.000000L541.000000 -0.000000L541.000000 -201.000000C541.000000 -219.000000,534.000000 -228.000000,521.000000 -228.000000C507.000000 -228.000000,500.000000 -219.000000,500.000000 -201.000000L500.000000 -41.000000L227.000000 -41.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_97">
      <path style="fill-rule: evenodd;" d="M419.000000 -0.000000L514.000000 -0.000000C532.000000 -0.000000,541.000000 -7.000000,541.000000 -21.000000C541.000000 -34.000000,532.000000 -41.000000,514.000000 -41.000000L460.000000 -41.000000L460.000000 -308.000000C460.000000 -379.000000,392.000000 -431.000000,299.000000 -431.000000C262.000000 -431.000000,197.000000 -418.000000,142.000000 -399.000000C131.000000 -395.000000,125.000000 -388.000000,125.000000 -378.000000C125.000000 -367.000000,134.000000 -358.000000,144.000000 -358.000000C146.000000 -358.000000,150.000000 -359.000000,154.000000 -360.000000C232.000000 -384.000000,260.000000 -390.000000,296.000000 -390.000000C369.000000 -390.000000,419.000000 -357.000000,419.000000 -308.000000L419.000000 -237.000000C360.000000 -253.000000,329.000000 -258.000000,283.000000 -258.000000C158.000000 -258.000000,72.000000 -199.000000,72.000000 -112.000000C72.000000 -36.000000,135.000000 16.000000,228.000000 16.000000C298.000000 16.000000,358.000000 -10.000000,419.000000 -67.000000M419.000000 -112.000000C352.000000 -49.000000,298.000000 -25.000000,227.000000 -25.000000C158.000000 -25.000000,113.000000 -59.000000,113.000000 -111.000000C113.000000 -174.000000,185.000000 -217.000000,291.000000 -217.000000C335.000000 -217.000000,383.000000 -211.000000,419.000000 -202.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_100">
      <path style="fill-rule: evenodd;" d="M502.000000 -604.000000L407.000000 -604.000000C389.000000 -604.000000,380.000000 -597.000000,380.000000 -584.000000C380.000000 -570.000000,389.000000 -563.000000,407.000000 -563.000000L461.000000 -563.000000L461.000000 -327.000000C412.000000 -398.000000,354.000000 -431.000000,279.000000 -431.000000C160.000000 -431.000000,63.000000 -331.000000,63.000000 -208.000000C63.000000 -85.000000,160.000000 16.000000,279.000000 16.000000C354.000000 16.000000,414.000000 -19.000000,461.000000 -89.000000L461.000000 -0.000000L556.000000 -0.000000C574.000000 -0.000000,583.000000 -7.000000,583.000000 -21.000000C583.000000 -34.000000,574.000000 -41.000000,556.000000 -41.000000L502.000000 -41.000000M282.000000 -390.000000C383.000000 -390.000000,461.000000 -310.000000,461.000000 -206.000000C461.000000 -106.000000,381.000000 -25.000000,283.000000 -25.000000C183.000000 -25.000000,104.000000 -106.000000,104.000000 -208.000000C104.000000 -309.000000,183.000000 -390.000000,282.000000 -390.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_114">
      <path style="fill-rule: evenodd;" d="M248.000000 -417.000000L132.000000 -417.000000C115.000000 -417.000000,105.000000 -409.000000,105.000000 -397.000000C105.000000 -384.000000,115.000000 -376.000000,132.000000 -376.000000L207.000000 -376.000000L207.000000 -41.000000L111.000000 -41.000000C94.000000 -41.000000,84.000000 -33.000000,84.000000 -21.000000C84.000000 -8.000000,94.000000 -0.000000,111.000000 -0.000000L427.000000 -0.000000C444.000000 -0.000000,454.000000 -8.000000,454.000000 -20.000000C454.000000 -33.000000,444.000000 -41.000000,427.000000 -41.000000L248.000000 -41.000000L248.000000 -262.000000C358.000000 -363.000000,393.000000 -386.000000,438.000000 -386.000000C460.000000 -386.000000,480.000000 -375.000000,504.000000 -352.000000C511.000000 -345.000000,513.000000 -344.000000,520.000000 -344.000000C532.000000 -344.000000,541.000000 -353.000000,541.000000 -365.000000C541.000000 -374.000000,535.000000 -382.000000,518.000000 -396.000000C492.000000 -418.000000,470.000000 -427.000000,441.000000 -427.000000C390.000000 -427.000000,341.000000 -399.000000,248.000000 -315.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_121">
      <path style="fill-rule: evenodd;" d="M282.000000 -0.000000L211.000000 145.000000L84.000000 145.000000C66.000000 145.000000,57.000000 152.000000,57.000000 165.000000C57.000000 179.000000,66.000000 186.000000,84.000000 186.000000L317.000000 186.000000C335.000000 186.000000,344.000000 179.000000,344.000000 165.000000C344.000000 152.000000,335.000000 145.000000,317.000000 145.000000L252.000000 145.000000L508.000000 -376.000000L522.000000 -376.000000C540.000000 -376.000000,549.000000 -383.000000,549.000000 -397.000000C549.000000 -410.000000,540.000000 -417.000000,522.000000 -417.000000L412.000000 -417.000000C394.000000 -417.000000,385.000000 -410.000000,385.000000 -397.000000C385.000000 -383.000000,394.000000 -376.000000,412.000000 -376.000000L466.000000 -376.000000L305.000000 -45.000000L141.000000 -376.000000L193.000000 -376.000000C211.000000 -376.000000,220.000000 -383.000000,220.000000 -397.000000C220.000000 -410.000000,211.000000 -417.000000,193.000000 -417.000000L78.000000 -417.000000C60.000000 -417.000000,51.000000 -410.000000,51.000000 -397.000000C51.000000 -383.000000,60.000000 -376.000000,78.000000 -376.000000L94.000000 -376.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmr10_50">
      <path style="fill-rule: evenodd;" d="M127.000000 -77.000000L233.000000 -180.000000C389.000000 -318.000000,449.000000 -372.000000,449.000000 -472.000000C449.000000 -586.000000,359.000000 -666.000000,237.000000 -666.000000C124.000000 -666.000000,50.000000 -574.000000,50.000000 -485.000000C50.000000 -429.000000,100.000000 -429.000000,103.000000 -429.000000C120.000000 -429.000000,155.000000 -441.000000,155.000000 -482.000000C155.000000 -508.000000,137.000000 -534.000000,102.000000 -534.000000C94.000000 -534.000000,92.000000 -534.000000,89.000000 -533.000000C112.000000 -598.000000,166.000000 -635.000000,224.000000 -635.000000C315.000000 -635.000000,358.000000 -554.000000,358.000000 -472.000000C358.000000 -392.000000,308.000000 -313.000000,253.000000 -251.000000L61.000000 -37.000000C50.000000 -26.000000,50.000000 -24.000000,50.000000 -0.000000L421.000000 -0.000000L449.000000 -174.000000L424.000000 -174.000000C419.000000 -144.000000,412.000000 -100.000000,402.000000 -85.000000C395.000000 -77.000000,329.000000 -77.000000,307.000000 -77.000000"></path>
    </g>
  </defs>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,0.931931 15.989151)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmr10_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,8.902054 10.204483)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHpcrr8r_76"></use>
    <use xlink:href="#GLYPHpcrr8r_100" x="6.000092"></use>
    <use xlink:href="#GLYPHpcrr8r_71" x="12.000185"></use>
    <use xlink:href="#GLYPHpcrr8r_114" x="18.000277"></use>
    <use xlink:href="#GLYPHpcrr8r_97" x="24.000369"></use>
    <use xlink:href="#GLYPHpcrr8r_121" x="30.000462"></use>
  </g>
</svg></span>).</p>
<p>
<i>Example:</i> Input image with gray values (scaled with <a href="#LdGray"><i><code><span data-if="hdevelop" style="display:inline">LdGray</span><span data-if="c" style="display:none">LdGray</span><span data-if="cpp" style="display:none">LdGray</span><span data-if="com" style="display:none">LdGray</span><span data-if="dotnet" style="display:none">ldGray</span><span data-if="python" style="display:none">ld_gray</span></code></i></a>=2)
<span title="2" style="vertical-align:-1.65em" class="math"><!-- Created by MetaPost 1.902 on 2023.05.15:2033 --><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="5.20696em" height="3.71156em" viewBox="0 0 83.311340 59.385010">
<!-- Original BoundingBox: -41.655670 -29.692505 41.655670 29.692505 -->
  <defs>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmr8r_48">
      <path style="fill-rule: evenodd;" d="M254.000000 -676.000000C199.000000 -676.000000,157.000000 -659.000000,120.000000 -624.000000C62.000000 -568.000000,24.000000 -453.000000,24.000000 -336.000000C24.000000 -227.000000,57.000000 -110.000000,104.000000 -54.000000C141.000000 -10.000000,192.000000 14.000000,250.000000 14.000000C301.000000 14.000000,344.000000 -3.000000,380.000000 -38.000000C438.000000 -93.000000,476.000000 -209.000000,476.000000 -330.000000C476.000000 -535.000000,385.000000 -676.000000,254.000000 -676.000000M251.000000 -650.000000C335.000000 -650.000000,380.000000 -537.000000,380.000000 -328.000000C380.000000 -119.000000,336.000000 -12.000000,250.000000 -12.000000C164.000000 -12.000000,120.000000 -119.000000,120.000000 -327.000000C120.000000 -539.000000,165.000000 -650.000000,251.000000 -650.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmr8r_49">
      <path style="fill-rule: evenodd;" d="M291.000000 -676.000000L111.000000 -585.000000L111.000000 -571.000000C123.000000 -576.000000,134.000000 -580.000000,138.000000 -582.000000C156.000000 -589.000000,173.000000 -593.000000,183.000000 -593.000000C204.000000 -593.000000,213.000000 -578.000000,213.000000 -546.000000L213.000000 -93.000000C213.000000 -60.000000,205.000000 -37.000000,189.000000 -28.000000C174.000000 -19.000000,160.000000 -16.000000,118.000000 -15.000000L118.000000 -0.000000L394.000000 -0.000000L394.000000 -15.000000C315.000000 -16.000000,299.000000 -26.000000,299.000000 -74.000000L299.000000 -674.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmr8r_50">
      <path style="fill-rule: evenodd;" d="M475.000000 -137.000000L462.000000 -142.000000C425.000000 -85.000000,412.000000 -76.000000,367.000000 -76.000000L128.000000 -76.000000L296.000000 -252.000000C385.000000 -345.000000,424.000000 -421.000000,424.000000 -499.000000C424.000000 -599.000000,343.000000 -676.000000,239.000000 -676.000000C184.000000 -676.000000,132.000000 -654.000000,95.000000 -614.000000C63.000000 -580.000000,48.000000 -548.000000,31.000000 -477.000000L52.000000 -472.000000C92.000000 -570.000000,128.000000 -602.000000,197.000000 -602.000000C281.000000 -602.000000,338.000000 -545.000000,338.000000 -461.000000C338.000000 -383.000000,292.000000 -290.000000,208.000000 -201.000000L30.000000 -12.000000L30.000000 -0.000000L420.000000 -0.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmr8r_51">
      <path style="fill-rule: evenodd;" d="M153.000000 -330.000000C212.000000 -330.000000,235.000000 -328.000000,259.000000 -319.000000C321.000000 -297.000000,360.000000 -240.000000,360.000000 -171.000000C360.000000 -87.000000,303.000000 -22.000000,229.000000 -22.000000C202.000000 -22.000000,182.000000 -29.000000,145.000000 -53.000000C115.000000 -71.000000,98.000000 -78.000000,81.000000 -78.000000C58.000000 -78.000000,43.000000 -64.000000,43.000000 -43.000000C43.000000 -8.000000,86.000000 14.000000,156.000000 14.000000C233.000000 14.000000,312.000000 -12.000000,359.000000 -53.000000C406.000000 -94.000000,432.000000 -152.000000,432.000000 -219.000000C432.000000 -270.000000,416.000000 -317.000000,387.000000 -348.000000C367.000000 -370.000000,348.000000 -382.000000,304.000000 -401.000000C373.000000 -448.000000,398.000000 -485.000000,398.000000 -539.000000C398.000000 -620.000000,334.000000 -676.000000,242.000000 -676.000000C192.000000 -676.000000,148.000000 -659.000000,112.000000 -627.000000C82.000000 -600.000000,67.000000 -574.000000,45.000000 -514.000000L60.000000 -510.000000C101.000000 -583.000000,146.000000 -616.000000,209.000000 -616.000000C274.000000 -616.000000,319.000000 -572.000000,319.000000 -509.000000C319.000000 -473.000000,304.000000 -437.000000,279.000000 -412.000000C249.000000 -382.000000,221.000000 -367.000000,153.000000 -343.000000"></path>
    </g>
  </defs>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,9.924377 13.697311)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,37.022858 13.697311)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,64.121384 13.697311)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_51"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,9.924377 32.825546)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,37.022858 32.825546)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,64.121384 32.825546)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,9.924377 51.953934)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,37.022858 51.953934)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,64.121384 51.953934)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_51"></use>
  </g>
</svg></span>
</p>
<p>Co-occurrence matrix (not scaled):</p>
<p>
<span title="3" style="vertical-align:-2.22052em" class="math"><!-- Created by MetaPost 1.902 on 2023.05.15:2033 --><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="43.7346em" height="4.90709em" viewBox="0 0 699.753708 78.513397">
<!-- Original BoundingBox: -349.876862 -39.256699 349.876846 39.256699 -->
  <defs>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmr8r_48">
      <path style="fill-rule: evenodd;" d="M254.000000 -676.000000C199.000000 -676.000000,157.000000 -659.000000,120.000000 -624.000000C62.000000 -568.000000,24.000000 -453.000000,24.000000 -336.000000C24.000000 -227.000000,57.000000 -110.000000,104.000000 -54.000000C141.000000 -10.000000,192.000000 14.000000,250.000000 14.000000C301.000000 14.000000,344.000000 -3.000000,380.000000 -38.000000C438.000000 -93.000000,476.000000 -209.000000,476.000000 -330.000000C476.000000 -535.000000,385.000000 -676.000000,254.000000 -676.000000M251.000000 -650.000000C335.000000 -650.000000,380.000000 -537.000000,380.000000 -328.000000C380.000000 -119.000000,336.000000 -12.000000,250.000000 -12.000000C164.000000 -12.000000,120.000000 -119.000000,120.000000 -327.000000C120.000000 -539.000000,165.000000 -650.000000,251.000000 -650.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmr8r_49">
      <path style="fill-rule: evenodd;" d="M291.000000 -676.000000L111.000000 -585.000000L111.000000 -571.000000C123.000000 -576.000000,134.000000 -580.000000,138.000000 -582.000000C156.000000 -589.000000,173.000000 -593.000000,183.000000 -593.000000C204.000000 -593.000000,213.000000 -578.000000,213.000000 -546.000000L213.000000 -93.000000C213.000000 -60.000000,205.000000 -37.000000,189.000000 -28.000000C174.000000 -19.000000,160.000000 -16.000000,118.000000 -15.000000L118.000000 -0.000000L394.000000 -0.000000L394.000000 -15.000000C315.000000 -16.000000,299.000000 -26.000000,299.000000 -74.000000L299.000000 -674.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmr8r_50">
      <path style="fill-rule: evenodd;" d="M475.000000 -137.000000L462.000000 -142.000000C425.000000 -85.000000,412.000000 -76.000000,367.000000 -76.000000L128.000000 -76.000000L296.000000 -252.000000C385.000000 -345.000000,424.000000 -421.000000,424.000000 -499.000000C424.000000 -599.000000,343.000000 -676.000000,239.000000 -676.000000C184.000000 -676.000000,132.000000 -654.000000,95.000000 -614.000000C63.000000 -580.000000,48.000000 -548.000000,31.000000 -477.000000L52.000000 -472.000000C92.000000 -570.000000,128.000000 -602.000000,197.000000 -602.000000C281.000000 -602.000000,338.000000 -545.000000,338.000000 -461.000000C338.000000 -383.000000,292.000000 -290.000000,208.000000 -201.000000L30.000000 -12.000000L30.000000 -0.000000L420.000000 -0.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmb8r_48">
      <path style="fill-rule: evenodd;" d="M250.000000 -688.000000C185.000000 -688.000000,119.000000 -644.000000,78.000000 -572.000000C46.000000 -517.000000,24.000000 -423.000000,24.000000 -340.000000C24.000000 -134.000000,118.000000 13.000000,251.000000 13.000000C380.000000 13.000000,476.000000 -136.000000,476.000000 -337.000000C476.000000 -537.000000,379.000000 -688.000000,250.000000 -688.000000M318.000000 -222.000000C318.000000 -163.000000,310.000000 -85.000000,301.000000 -58.000000C290.000000 -29.000000,274.000000 -15.000000,251.000000 -15.000000C201.000000 -15.000000,182.000000 -74.000000,182.000000 -222.000000L182.000000 -451.000000C182.000000 -602.000000,201.000000 -660.000000,249.000000 -660.000000C298.000000 -660.000000,318.000000 -598.000000,318.000000 -451.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmb8r_49">
      <path style="fill-rule: evenodd;" d="M317.000000 -688.000000L65.000000 -579.000000L65.000000 -553.000000C74.000000 -556.000000,82.000000 -559.000000,85.000000 -561.000000C112.000000 -571.000000,137.000000 -578.000000,150.000000 -578.000000C175.000000 -578.000000,186.000000 -556.000000,186.000000 -509.000000L186.000000 -124.000000C186.000000 -42.000000,166.000000 -25.000000,67.000000 -24.000000L67.000000 -0.000000L442.000000 -0.000000L442.000000 -24.000000C351.000000 -26.000000,334.000000 -41.000000,334.000000 -118.000000L334.000000 -688.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmb8r_51">
      <path style="fill-rule: evenodd;" d="M58.000000 -523.000000C96.000000 -584.000000,129.000000 -607.000000,181.000000 -607.000000C244.000000 -607.000000,283.000000 -567.000000,283.000000 -504.000000C283.000000 -438.000000,248.000000 -403.000000,153.000000 -373.000000L153.000000 -356.000000C236.000000 -327.000000,269.000000 -310.000000,305.000000 -276.000000C336.000000 -247.000000,354.000000 -202.000000,354.000000 -154.000000C354.000000 -82.000000,316.000000 -36.000000,256.000000 -36.000000C232.000000 -36.000000,213.000000 -47.000000,180.000000 -79.000000C141.000000 -118.000000,111.000000 -134.000000,81.000000 -134.000000C43.000000 -134.000000,16.000000 -110.000000,16.000000 -76.000000C16.000000 -22.000000,77.000000 14.000000,169.000000 14.000000C336.000000 14.000000,468.000000 -100.000000,468.000000 -246.000000C468.000000 -292.000000,453.000000 -335.000000,424.000000 -370.000000C403.000000 -394.000000,386.000000 -406.000000,346.000000 -424.000000C410.000000 -463.000000,429.000000 -492.000000,429.000000 -551.000000C429.000000 -637.000000,368.000000 -688.000000,266.000000 -688.000000C167.000000 -688.000000,92.000000 -638.000000,37.000000 -535.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmb8r_52">
      <path style="fill-rule: evenodd;" d="M412.000000 -255.000000L412.000000 -688.000000L332.000000 -688.000000L273.000000 -611.000000C145.000000 -444.000000,79.000000 -352.000000,19.000000 -257.000000L19.000000 -144.000000L267.000000 -144.000000L267.000000 -0.000000L412.000000 -0.000000L412.000000 -144.000000L475.000000 -144.000000L475.000000 -255.000000M269.000000 -255.000000L60.000000 -255.000000L269.000000 -552.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmb8r_53">
      <path style="fill-rule: evenodd;" d="M149.000000 -549.000000L427.000000 -549.000000L470.000000 -676.000000L148.000000 -676.000000L51.000000 -331.000000C146.000000 -324.000000,187.000000 -318.000000,231.000000 -304.000000C320.000000 -276.000000,373.000000 -219.000000,373.000000 -153.000000C373.000000 -97.000000,329.000000 -53.000000,273.000000 -53.000000C250.000000 -53.000000,223.000000 -65.000000,183.000000 -95.000000C140.000000 -127.000000,110.000000 -140.000000,84.000000 -140.000000C48.000000 -140.000000,22.000000 -115.000000,22.000000 -80.000000C22.000000 -27.000000,80.000000 8.000000,169.000000 8.000000C334.000000 8.000000,451.000000 -92.000000,451.000000 -233.000000C451.000000 -337.000000,387.000000 -417.000000,278.000000 -448.000000C240.000000 -459.000000,209.000000 -463.000000,127.000000 -468.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmb8r_57">
      <path style="fill-rule: evenodd;" d="M31.000000 13.000000C171.000000 -7.000000,239.000000 -32.000000,317.000000 -91.000000C419.000000 -168.000000,473.000000 -275.000000,473.000000 -402.000000C473.000000 -575.000000,381.000000 -688.000000,241.000000 -688.000000C116.000000 -688.000000,26.000000 -589.000000,26.000000 -452.000000C26.000000 -334.000000,99.000000 -254.000000,208.000000 -254.000000C246.000000 -254.000000,272.000000 -259.000000,299.000000 -273.000000C256.000000 -121.000000,175.000000 -42.000000,31.000000 -13.000000M309.000000 -328.000000C308.000000 -315.000000,307.000000 -310.000000,304.000000 -308.000000C297.000000 -303.000000,278.000000 -299.000000,263.000000 -299.000000C201.000000 -299.000000,178.000000 -358.000000,178.000000 -515.000000C178.000000 -631.000000,190.000000 -661.000000,239.000000 -661.000000C264.000000 -661.000000,281.000000 -650.000000,292.000000 -627.000000C307.000000 -599.000000,317.000000 -529.000000,317.000000 -458.000000C317.000000 -431.000000,315.000000 -399.000000,312.000000 -354.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmb8r_58">
      <path style="fill-rule: evenodd;" d="M166.000000 -156.000000C120.000000 -156.000000,82.000000 -117.000000,82.000000 -72.000000C82.000000 -24.000000,118.000000 13.000000,165.000000 13.000000C213.000000 13.000000,251.000000 -24.000000,251.000000 -70.000000C251.000000 -117.000000,213.000000 -156.000000,166.000000 -156.000000M166.000000 -472.000000C120.000000 -472.000000,82.000000 -434.000000,82.000000 -389.000000C82.000000 -340.000000,118.000000 -303.000000,166.000000 -303.000000C213.000000 -303.000000,251.000000 -341.000000,251.000000 -387.000000C251.000000 -434.000000,213.000000 -472.000000,166.000000 -472.000000"></path>
    </g>
  </defs>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,0.139130 42.985062)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmb8r_48"></use>
    <use xlink:href="#GLYPHptmb8r_58" x="5.000079"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,43.863144 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,70.961639 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,98.060150 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,125.158646 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,43.863144 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,70.961639 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,98.060150 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,125.158646 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,43.863144 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,70.961639 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,98.060150 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,125.158646 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,43.863144 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,70.961639 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,98.060150 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,125.158646 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,174.573563 42.985062)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmb8r_49"></use>
    <use xlink:href="#GLYPHptmb8r_51" x="5.000079"></use>
    <use xlink:href="#GLYPHptmb8r_53" x="10.000159"></use>
    <use xlink:href="#GLYPHptmb8r_58" x="15.000238"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,234.237946 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,261.336288 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,288.434814 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,315.533295 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,234.237946 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,261.336288 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,288.434814 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,315.533295 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,234.237946 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,261.336288 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,288.434814 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,315.533295 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,234.237946 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,261.336288 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,288.434814 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,315.533295 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,364.948212 42.985062)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmb8r_57"></use>
    <use xlink:href="#GLYPHptmb8r_48" x="5.000079"></use>
    <use xlink:href="#GLYPHptmb8r_58" x="10.000159"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,416.642471 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,443.740997 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,470.839478 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,497.937836 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,416.642471 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,443.740997 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,470.839478 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,497.937836 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,416.642471 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,443.740997 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,470.839478 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,497.937836 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,416.642471 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,443.740997 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,470.839478 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,497.937836 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,547.352737 42.985062)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmb8r_52"></use>
    <use xlink:href="#GLYPHptmb8r_53" x="5.000079"></use>
    <use xlink:href="#GLYPHptmb8r_58" x="10.000159"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,599.047028 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,626.145523 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,653.244034 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,680.342529 14.133118)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,599.047028 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,626.145523 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,653.244034 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,680.342529 33.261520)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,599.047028 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,626.145523 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,653.244034 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,680.342529 52.389740)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,599.047028 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,626.145523 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,653.244034 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,680.342529 71.518127)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_48"></use>
  </g>
</svg></span>
</p>
<h2 id="sec_attention">注意</h2>
<p>Note that 该算子 <code><span data-if="hdevelop" style="display:inline">gen_cooc_matrix</span><span data-if="c" style="display:none">gen_cooc_matrix</span><span data-if="cpp" style="display:none">GenCoocMatrix</span><span data-if="com" style="display:none">GenCoocMatrix</span><span data-if="dotnet" style="display:none">GenCoocMatrix</span><span data-if="python" style="display:none">gen_cooc_matrix</span></code> only considers
the given <a href="#Regions"><i><code><span data-if="hdevelop" style="display:inline">区域</span><span data-if="c" style="display:none">区域</span><span data-if="cpp" style="display:none">区域</span><span data-if="com" style="display:none">区域</span><span data-if="dotnet" style="display:none">区域</span><span data-if="python" style="display:none">区域</span></code></i></a> and ignores any previously set domain
of the input image <a href="#Image"><i><code><span data-if="hdevelop" style="display:inline">Image</span><span data-if="c" style="display:none">Image</span><span data-if="cpp" style="display:none">Image</span><span data-if="com" style="display:none">Image</span><span data-if="dotnet" style="display:none">image</span><span data-if="python" style="display:none">image</span></code></i></a>.</p>
<h2 id="sec_execution">运行信息</h2>
<ul>
  <li>多线程类型:可重入(与非独占操作符并行运行)。</li>
<li>多线程作用域:全局(可以从任何线程调用)。</li>
  
    <li>在元组级别自动并行化。</li>
  
</ul>
<h2 id="sec_parameters">参数表</h2>
  <div class="par">
<div class="parhead">
<span id="Regions" class="parname"><b><code><span data-if="hdevelop" style="display:inline">区域</span><span data-if="c" style="display:none">区域</span><span data-if="cpp" style="display:none">区域</span><span data-if="com" style="display:none">区域</span><span data-if="dotnet" style="display:none">区域</span><span data-if="python" style="display:none">区域</span></code></b> (input_object)  </span><span>region(-array) <code>→</code> <span data-if="hdevelop" style="display:inline">object</span><span data-if="dotnet" style="display:none"><a href="HRegion.html">HRegion</a></span><span data-if="python" style="display:none">HObject</span><span data-if="cpp" style="display:none"><a href="HRegion.html">HRegion</a></span><span data-if="c" style="display:none">Hobject</span></span>
</div>
<p class="pardesc">Region to be checked.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Image" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Image</span><span data-if="c" style="display:none">Image</span><span data-if="cpp" style="display:none">Image</span><span data-if="com" style="display:none">Image</span><span data-if="dotnet" style="display:none">image</span><span data-if="python" style="display:none">image</span></code></b> (input_object)  </span><span>singlechannelimage <code>→</code> <span data-if="hdevelop" style="display:inline">object</span><span data-if="dotnet" style="display:none"><a href="HImage.html">HImage</a></span><span data-if="python" style="display:none">HObject</span><span data-if="cpp" style="display:none"><a href="HImage.html">HImage</a></span><span data-if="c" style="display:none">Hobject</span> (byte)</span>
</div>
<p class="pardesc">Image providing the gray values.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Matrix" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Matrix</span><span data-if="c" style="display:none">Matrix</span><span data-if="cpp" style="display:none">Matrix</span><span data-if="com" style="display:none">Matrix</span><span data-if="dotnet" style="display:none">matrix</span><span data-if="python" style="display:none">matrix</span></code></b> (output_object)  </span><span>image(-array) <code>→</code> <span data-if="hdevelop" style="display:inline">object</span><span data-if="dotnet" style="display:none"><a href="HImage.html">HImage</a></span><span data-if="python" style="display:none">HObject</span><span data-if="cpp" style="display:none"><a href="HImage.html">HImage</a></span><span data-if="c" style="display:none">Hobject *</span> (real)</span>
</div>
<p class="pardesc">Co-occurrence matrix (matrices).</p>
</div>
  <div class="par">
<div class="parhead">
<span id="LdGray" class="parname"><b><code><span data-if="hdevelop" style="display:inline">LdGray</span><span data-if="c" style="display:none">LdGray</span><span data-if="cpp" style="display:none">LdGray</span><span data-if="com" style="display:none">LdGray</span><span data-if="dotnet" style="display:none">ldGray</span><span data-if="python" style="display:none">ld_gray</span></code></b> (input_control)  </span><span>integer <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">int</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (integer)</span><span data-if="dotnet" style="display:none"> (<i>int</i> / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>Hlong</i>)</span><span data-if="c" style="display:none"> (<i>Hlong</i>)</span></span>
</div>
<p class="pardesc">Number of gray values to be distinguished
(<span title="4" style="vertical-align:-0.124322em" class="math"><!-- Created by MetaPost 1.902 on 2023.05.15:2033 --><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="4.26051em" height="1.12364em" viewBox="0 0 68.168106 17.978302">
<!-- Original BoundingBox: -34.084061 -8.989151 34.084045 8.989151 -->
  <defs>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_71">
      <path style="fill-rule: evenodd;" d="M520.000000 -209.000000L534.000000 -209.000000C553.000000 -209.000000,562.000000 -216.000000,562.000000 -230.000000C562.000000 -243.000000,553.000000 -250.000000,534.000000 -250.000000L340.000000 -250.000000C322.000000 -250.000000,313.000000 -243.000000,313.000000 -230.000000C313.000000 -216.000000,322.000000 -209.000000,340.000000 -209.000000L479.000000 -209.000000L479.000000 -59.000000C423.000000 -33.000000,388.000000 -25.000000,336.000000 -25.000000C192.000000 -25.000000,104.000000 -108.000000,104.000000 -244.000000L104.000000 -317.000000C104.000000 -376.000000,132.000000 -440.000000,176.000000 -481.000000C214.000000 -518.000000,259.000000 -535.000000,315.000000 -535.000000C404.000000 -535.000000,476.000000 -494.000000,480.000000 -443.000000C481.000000 -426.000000,487.000000 -418.000000,500.000000 -418.000000C513.000000 -418.000000,520.000000 -427.000000,520.000000 -445.000000L520.000000 -536.000000C520.000000 -555.000000,514.000000 -563.000000,500.000000 -563.000000C486.000000 -563.000000,479.000000 -554.000000,479.000000 -536.000000L479.000000 -522.000000C434.000000 -558.000000,379.000000 -576.000000,313.000000 -576.000000C247.000000 -576.000000,189.000000 -553.000000,144.000000 -511.000000C94.000000 -463.000000,63.000000 -389.000000,63.000000 -318.000000L63.000000 -244.000000C63.000000 -86.000000,169.000000 16.000000,333.000000 16.000000C395.000000 16.000000,461.000000 -2.000000,520.000000 -36.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_76">
      <path style="fill-rule: evenodd;" d="M227.000000 -522.000000L323.000000 -522.000000C341.000000 -522.000000,350.000000 -529.000000,350.000000 -543.000000C350.000000 -556.000000,341.000000 -563.000000,323.000000 -563.000000L90.000000 -563.000000C72.000000 -563.000000,63.000000 -556.000000,63.000000 -543.000000C63.000000 -529.000000,72.000000 -522.000000,90.000000 -522.000000L186.000000 -522.000000L186.000000 -41.000000L90.000000 -41.000000C72.000000 -41.000000,63.000000 -34.000000,63.000000 -21.000000C63.000000 -7.000000,72.000000 -0.000000,90.000000 -0.000000L541.000000 -0.000000L541.000000 -201.000000C541.000000 -219.000000,534.000000 -228.000000,521.000000 -228.000000C507.000000 -228.000000,500.000000 -219.000000,500.000000 -201.000000L500.000000 -41.000000L227.000000 -41.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_97">
      <path style="fill-rule: evenodd;" d="M419.000000 -0.000000L514.000000 -0.000000C532.000000 -0.000000,541.000000 -7.000000,541.000000 -21.000000C541.000000 -34.000000,532.000000 -41.000000,514.000000 -41.000000L460.000000 -41.000000L460.000000 -308.000000C460.000000 -379.000000,392.000000 -431.000000,299.000000 -431.000000C262.000000 -431.000000,197.000000 -418.000000,142.000000 -399.000000C131.000000 -395.000000,125.000000 -388.000000,125.000000 -378.000000C125.000000 -367.000000,134.000000 -358.000000,144.000000 -358.000000C146.000000 -358.000000,150.000000 -359.000000,154.000000 -360.000000C232.000000 -384.000000,260.000000 -390.000000,296.000000 -390.000000C369.000000 -390.000000,419.000000 -357.000000,419.000000 -308.000000L419.000000 -237.000000C360.000000 -253.000000,329.000000 -258.000000,283.000000 -258.000000C158.000000 -258.000000,72.000000 -199.000000,72.000000 -112.000000C72.000000 -36.000000,135.000000 16.000000,228.000000 16.000000C298.000000 16.000000,358.000000 -10.000000,419.000000 -67.000000M419.000000 -112.000000C352.000000 -49.000000,298.000000 -25.000000,227.000000 -25.000000C158.000000 -25.000000,113.000000 -59.000000,113.000000 -111.000000C113.000000 -174.000000,185.000000 -217.000000,291.000000 -217.000000C335.000000 -217.000000,383.000000 -211.000000,419.000000 -202.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_100">
      <path style="fill-rule: evenodd;" d="M502.000000 -604.000000L407.000000 -604.000000C389.000000 -604.000000,380.000000 -597.000000,380.000000 -584.000000C380.000000 -570.000000,389.000000 -563.000000,407.000000 -563.000000L461.000000 -563.000000L461.000000 -327.000000C412.000000 -398.000000,354.000000 -431.000000,279.000000 -431.000000C160.000000 -431.000000,63.000000 -331.000000,63.000000 -208.000000C63.000000 -85.000000,160.000000 16.000000,279.000000 16.000000C354.000000 16.000000,414.000000 -19.000000,461.000000 -89.000000L461.000000 -0.000000L556.000000 -0.000000C574.000000 -0.000000,583.000000 -7.000000,583.000000 -21.000000C583.000000 -34.000000,574.000000 -41.000000,556.000000 -41.000000L502.000000 -41.000000M282.000000 -390.000000C383.000000 -390.000000,461.000000 -310.000000,461.000000 -206.000000C461.000000 -106.000000,381.000000 -25.000000,283.000000 -25.000000C183.000000 -25.000000,104.000000 -106.000000,104.000000 -208.000000C104.000000 -309.000000,183.000000 -390.000000,282.000000 -390.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_114">
      <path style="fill-rule: evenodd;" d="M248.000000 -417.000000L132.000000 -417.000000C115.000000 -417.000000,105.000000 -409.000000,105.000000 -397.000000C105.000000 -384.000000,115.000000 -376.000000,132.000000 -376.000000L207.000000 -376.000000L207.000000 -41.000000L111.000000 -41.000000C94.000000 -41.000000,84.000000 -33.000000,84.000000 -21.000000C84.000000 -8.000000,94.000000 -0.000000,111.000000 -0.000000L427.000000 -0.000000C444.000000 -0.000000,454.000000 -8.000000,454.000000 -20.000000C454.000000 -33.000000,444.000000 -41.000000,427.000000 -41.000000L248.000000 -41.000000L248.000000 -262.000000C358.000000 -363.000000,393.000000 -386.000000,438.000000 -386.000000C460.000000 -386.000000,480.000000 -375.000000,504.000000 -352.000000C511.000000 -345.000000,513.000000 -344.000000,520.000000 -344.000000C532.000000 -344.000000,541.000000 -353.000000,541.000000 -365.000000C541.000000 -374.000000,535.000000 -382.000000,518.000000 -396.000000C492.000000 -418.000000,470.000000 -427.000000,441.000000 -427.000000C390.000000 -427.000000,341.000000 -399.000000,248.000000 -315.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHpcrr8r_121">
      <path style="fill-rule: evenodd;" d="M282.000000 -0.000000L211.000000 145.000000L84.000000 145.000000C66.000000 145.000000,57.000000 152.000000,57.000000 165.000000C57.000000 179.000000,66.000000 186.000000,84.000000 186.000000L317.000000 186.000000C335.000000 186.000000,344.000000 179.000000,344.000000 165.000000C344.000000 152.000000,335.000000 145.000000,317.000000 145.000000L252.000000 145.000000L508.000000 -376.000000L522.000000 -376.000000C540.000000 -376.000000,549.000000 -383.000000,549.000000 -397.000000C549.000000 -410.000000,540.000000 -417.000000,522.000000 -417.000000L412.000000 -417.000000C394.000000 -417.000000,385.000000 -410.000000,385.000000 -397.000000C385.000000 -383.000000,394.000000 -376.000000,412.000000 -376.000000L466.000000 -376.000000L305.000000 -45.000000L141.000000 -376.000000L193.000000 -376.000000C211.000000 -376.000000,220.000000 -383.000000,220.000000 -397.000000C220.000000 -410.000000,211.000000 -417.000000,193.000000 -417.000000L78.000000 -417.000000C60.000000 -417.000000,51.000000 -410.000000,51.000000 -397.000000C51.000000 -383.000000,60.000000 -376.000000,78.000000 -376.000000L94.000000 -376.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmr10_50">
      <path style="fill-rule: evenodd;" d="M127.000000 -77.000000L233.000000 -180.000000C389.000000 -318.000000,449.000000 -372.000000,449.000000 -472.000000C449.000000 -586.000000,359.000000 -666.000000,237.000000 -666.000000C124.000000 -666.000000,50.000000 -574.000000,50.000000 -485.000000C50.000000 -429.000000,100.000000 -429.000000,103.000000 -429.000000C120.000000 -429.000000,155.000000 -441.000000,155.000000 -482.000000C155.000000 -508.000000,137.000000 -534.000000,102.000000 -534.000000C94.000000 -534.000000,92.000000 -534.000000,89.000000 -533.000000C112.000000 -598.000000,166.000000 -635.000000,224.000000 -635.000000C315.000000 -635.000000,358.000000 -554.000000,358.000000 -472.000000C358.000000 -392.000000,308.000000 -313.000000,253.000000 -251.000000L61.000000 -37.000000C50.000000 -26.000000,50.000000 -24.000000,50.000000 -0.000000L421.000000 -0.000000L449.000000 -174.000000L424.000000 -174.000000C419.000000 -144.000000,412.000000 -100.000000,402.000000 -85.000000C395.000000 -77.000000,329.000000 -77.000000,307.000000 -77.000000"></path>
    </g>
  </defs>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,0.931931 15.989151)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmr10_50"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,8.902054 10.204483)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHpcrr8r_76"></use>
    <use xlink:href="#GLYPHpcrr8r_100" x="6.000092"></use>
    <use xlink:href="#GLYPHpcrr8r_71" x="12.000185"></use>
    <use xlink:href="#GLYPHpcrr8r_114" x="18.000277"></use>
    <use xlink:href="#GLYPHpcrr8r_97" x="24.000369"></use>
    <use xlink:href="#GLYPHpcrr8r_121" x="30.000462"></use>
  </g>
</svg></span>).</p>
<p class="pardesc"><span class="parcat">Default:
      </span>6</p>
<p class="pardesc"><span class="parcat">List of values:
      </span>1, 2, 3, 4, 5, 6, 7, 8</p>
<p class="pardesc"><span class="parcat">Value range:
      </span><code>
    <span data-if="hdevelop" style="display:inline">LdGray</span>
    <span data-if="c" style="display:none">LdGray</span>
    <span data-if="cpp" style="display:none">LdGray</span>
    <span data-if="com" style="display:none">LdGray</span>
    <span data-if="dotnet" style="display:none">ldGray</span>
    <span data-if="python" style="display:none">ld_gray</span>
    </code> (lin)</p>
<p class="pardesc"><span class="parcat">Minimum increment:
      </span>1</p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>1</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Direction" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Direction</span><span data-if="c" style="display:none">Direction</span><span data-if="cpp" style="display:none">Direction</span><span data-if="com" style="display:none">Direction</span><span data-if="dotnet" style="display:none">direction</span><span data-if="python" style="display:none">direction</span></code></b> (input_control)  </span><span>integer <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">int</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (integer)</span><span data-if="dotnet" style="display:none"> (<i>int</i> / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>Hlong</i>)</span><span data-if="c" style="display:none"> (<i>Hlong</i>)</span></span>
</div>
<p class="pardesc">Direction of neighbor relation.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>0</p>
<p class="pardesc"><span class="parcat">List of values:
      </span>0, 45, 90, 135</p>
</div>
<h2 id="sec_result">结果</h2>
<p>该算子 <code><span data-if="hdevelop" style="display:inline">gen_cooc_matrix</span><span data-if="c" style="display:none">gen_cooc_matrix</span><span data-if="cpp" style="display:none">GenCoocMatrix</span><span data-if="com" style="display:none">GenCoocMatrix</span><span data-if="dotnet" style="display:none">GenCoocMatrix</span><span data-if="python" style="display:none">gen_cooc_matrix</span></code> 返回值 <TT>2</TT> (
      <TT>H_MSG_TRUE</TT>)
     if
an image with defined gray values is entered and the parameters are
correct.  The behavior in case of empty input (no input images
available) is set via 该算子
<a href="set_system.html"><code><span data-if="hdevelop" style="display:inline">set_system(::'no_object_result',&lt;Result&gt;:)</span><span data-if="c" style="display:none">set_system("no_object_result",&lt;Result&gt;)</span><span data-if="cpp" style="display:none">SetSystem("no_object_result",&lt;Result&gt;)</span><span data-if="com" style="display:none">SetSystem("no_object_result",&lt;Result&gt;)</span><span data-if="dotnet" style="display:none">SetSystem("no_object_result",&lt;Result&gt;)</span><span data-if="python" style="display:none">set_system("no_object_result",&lt;Result&gt;)</span></code></a>,
the behavior in case of empty region is set via
<a href="set_system.html"><code><span data-if="hdevelop" style="display:inline">set_system(::'empty_region_result',&lt;Result&gt;:)</span><span data-if="c" style="display:none">set_system("empty_region_result",&lt;Result&gt;)</span><span data-if="cpp" style="display:none">SetSystem("empty_region_result",&lt;Result&gt;)</span><span data-if="com" style="display:none">SetSystem("empty_region_result",&lt;Result&gt;)</span><span data-if="dotnet" style="display:none">SetSystem("empty_region_result",&lt;Result&gt;)</span><span data-if="python" style="display:none">set_system("empty_region_result",&lt;Result&gt;)</span></code></a>.
If necessary an exception is raised.</p>
<h2 id="sec_predecessors">可能的前置算子</h2>
<p>
<code><a href="draw_region.html"><span data-if="hdevelop" style="display:inline">draw_region</span><span data-if="c" style="display:none">draw_region</span><span data-if="cpp" style="display:none">DrawRegion</span><span data-if="com" style="display:none">DrawRegion</span><span data-if="dotnet" style="display:none">DrawRegion</span><span data-if="python" style="display:none">draw_region</span></a></code>, 
<code><a href="gen_circle.html"><span data-if="hdevelop" style="display:inline">gen_circle</span><span data-if="c" style="display:none">gen_circle</span><span data-if="cpp" style="display:none">GenCircle</span><span data-if="com" style="display:none">GenCircle</span><span data-if="dotnet" style="display:none">GenCircle</span><span data-if="python" style="display:none">gen_circle</span></a></code>, 
<code><a href="gen_ellipse.html"><span data-if="hdevelop" style="display:inline">gen_ellipse</span><span data-if="c" style="display:none">gen_ellipse</span><span data-if="cpp" style="display:none">GenEllipse</span><span data-if="com" style="display:none">GenEllipse</span><span data-if="dotnet" style="display:none">GenEllipse</span><span data-if="python" style="display:none">gen_ellipse</span></a></code>, 
<code><a href="gen_rectangle1.html"><span data-if="hdevelop" style="display:inline">gen_rectangle1</span><span data-if="c" style="display:none">gen_rectangle1</span><span data-if="cpp" style="display:none">GenRectangle1</span><span data-if="com" style="display:none">GenRectangle1</span><span data-if="dotnet" style="display:none">GenRectangle1</span><span data-if="python" style="display:none">gen_rectangle1</span></a></code>, 
<code><a href="gen_rectangle2.html"><span data-if="hdevelop" style="display:inline">gen_rectangle2</span><span data-if="c" style="display:none">gen_rectangle2</span><span data-if="cpp" style="display:none">GenRectangle2</span><span data-if="com" style="display:none">GenRectangle2</span><span data-if="dotnet" style="display:none">GenRectangle2</span><span data-if="python" style="display:none">gen_rectangle2</span></a></code>, 
<code><a href="threshold.html"><span data-if="hdevelop" style="display:inline">threshold</span><span data-if="c" style="display:none">threshold</span><span data-if="cpp" style="display:none">Threshold</span><span data-if="com" style="display:none">Threshold</span><span data-if="dotnet" style="display:none">Threshold</span><span data-if="python" style="display:none">threshold</span></a></code>, 
<code><a href="erosion_circle.html"><span data-if="hdevelop" style="display:inline">erosion_circle</span><span data-if="c" style="display:none">erosion_circle</span><span data-if="cpp" style="display:none">ErosionCircle</span><span data-if="com" style="display:none">ErosionCircle</span><span data-if="dotnet" style="display:none">ErosionCircle</span><span data-if="python" style="display:none">erosion_circle</span></a></code>, 
<code><a href="binomial_filter.html"><span data-if="hdevelop" style="display:inline">binomial_filter</span><span data-if="c" style="display:none">binomial_filter</span><span data-if="cpp" style="display:none">BinomialFilter</span><span data-if="com" style="display:none">BinomialFilter</span><span data-if="dotnet" style="display:none">BinomialFilter</span><span data-if="python" style="display:none">binomial_filter</span></a></code>, 
<code><a href="gauss_filter.html"><span data-if="hdevelop" style="display:inline">gauss_filter</span><span data-if="c" style="display:none">gauss_filter</span><span data-if="cpp" style="display:none">GaussFilter</span><span data-if="com" style="display:none">GaussFilter</span><span data-if="dotnet" style="display:none">GaussFilter</span><span data-if="python" style="display:none">gauss_filter</span></a></code>, 
<code><a href="smooth_image.html"><span data-if="hdevelop" style="display:inline">smooth_image</span><span data-if="c" style="display:none">smooth_image</span><span data-if="cpp" style="display:none">SmoothImage</span><span data-if="com" style="display:none">SmoothImage</span><span data-if="dotnet" style="display:none">SmoothImage</span><span data-if="python" style="display:none">smooth_image</span></a></code>, 
<code><a href="sub_image.html"><span data-if="hdevelop" style="display:inline">sub_image</span><span data-if="c" style="display:none">sub_image</span><span data-if="cpp" style="display:none">SubImage</span><span data-if="com" style="display:none">SubImage</span><span data-if="dotnet" style="display:none">SubImage</span><span data-if="python" style="display:none">sub_image</span></a></code>
</p>
<h2 id="sec_alternatives">可替代算子</h2>
<p>
<code><a href="cooc_feature_image.html"><span data-if="hdevelop" style="display:inline">cooc_feature_image</span><span data-if="c" style="display:none">cooc_feature_image</span><span data-if="cpp" style="display:none">CoocFeatureImage</span><span data-if="com" style="display:none">CoocFeatureImage</span><span data-if="dotnet" style="display:none">CoocFeatureImage</span><span data-if="python" style="display:none">cooc_feature_image</span></a></code>
</p>
<h2 id="sec_see">参考其它</h2>
<p>
<code><a href="cooc_feature_matrix.html"><span data-if="hdevelop" style="display:inline">cooc_feature_matrix</span><span data-if="c" style="display:none">cooc_feature_matrix</span><span data-if="cpp" style="display:none">CoocFeatureMatrix</span><span data-if="com" style="display:none">CoocFeatureMatrix</span><span data-if="dotnet" style="display:none">CoocFeatureMatrix</span><span data-if="python" style="display:none">cooc_feature_matrix</span></a></code>
</p>
<h2 id="sec_module">模块</h2>
<p>
Foundation</p>
<!--OP_REF_FOOTER_START-->
<hr>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<div class="footer">
<div class="copyright">HALCON算子参考手册 Copyright © 2015-2023 51Halcon</div>
</div>
</div>
</body>
</html>
